program Tangent1;

{$APPTYPE CONSOLE}

uses
  SysUtils;

var
x0, y0, x1, y1, dx, dy, R: Integer;
a1, a2, b1, b2, c1, c2, D: Real;


begin
  readln(x0, y0, x1, y1, R);
  dx:=x0-x1;
  dy:=y0-y1;
  D:=Sqrt(dx*dx+dy*dy-R*R);
  a1:=(-R*dx-dy*D)/(dx*dx+dy*dy);
  a2:=(-R*dx+dy*D)/(dx*dx+dy*dy);
  b1:=(-R*dy+dx*D)/(dx*dx+dy*dy);
  b2:=(-R*dy-dx*D)/(dx*dx+dy*dy);
  c1:=-a1*x0-b1*y0;
  c2:=-a2*x0-b2*y0;
  Writeln (a1, ' ', b1, ' ', c1);
  Writeln (a2, ' ', b2, ' ', c2);
  Readln;
end.
